import send from '../../http'
export default {
  checkPbxLoadInfo (data) {
    let req = {
      data: data,
      action: 'config.ivr.pbx.checkPbxLoadInfo'
    }
    return send.fetch(req, 'post')
  },
  queryAccountPbxBoard (data) {
    let req = {
      data: data,
      action: 'config.ivr.pbx.queryAccountPbxBoard'
    }
    return send.fetch(req, 'post')
  },
  saveAccountPbx (data) {
    let req = {
      data: data,
      action: 'config.ivr.pbx.saveAccountPbx'
    }
    return send.fetch(req, 'post')
  },
  removeAccountPbx (data) {
    let req = {
      data: data,
      action: 'config.ivr.pbx.removeAccountPbx'
    }
    return send.fetch(req, 'post')
  },
  queryPhoneBarConfig (data) {
    let req = {
      data: data,
      action: 'app.phoneBarConfig.queryConfig'
    }
    return send.fetch(req, 'post')
  },
  savePhoneBarConfig (data) {
    let req = {
      data: data,
      action: 'config.ivr.phoneBarConfig.savePhoneBarConfig'
    }
    return send.fetch(req, 'post')
  },
  moveAccountPbx (data) {
    let req = {
      data: data,
      action: 'config.ivr.pbx.moveAccountPbx'
    }
    return send.fetch(req, 'post')
  }
}
